<template>
  <ContentWrap>
    <el-col :span="24">
      <el-descriptions :column="3">
        <el-descriptions-item>
          <template #label>
            <descriptions-item-label label="提现编码" />
          </template>
          {{ data.no }}
        </el-descriptions-item>
        <el-descriptions-item>
          <template #label>
            <descriptions-item-label label="用户ID" />
          </template>
          {{ data.userId }}
        </el-descriptions-item>
        <el-descriptions-item>
          <template #label>
            <descriptions-item-label label="昵称" />
          </template>
          {{ data.nickName }}
        </el-descriptions-item>
        <el-descriptions-item>
          <template #label>
            <descriptions-item-label label="手机号" />
          </template>
          {{ data.mobile }}
        </el-descriptions-item>
        <el-descriptions-item>
          <template #label>
            <descriptions-item-label label="提现金额" />
          </template>
          {{ data.price }}
        </el-descriptions-item>
        <el-descriptions-item>
          <template #label>
            <descriptions-item-label label="提现方式" />
          </template>
          <dict-tag :type="DICT_TYPE.PAY_TYPE" :value="data.type || ''" />
        </el-descriptions-item>
        <el-descriptions-item>
          <template #label>
            <descriptions-item-label label="申请时间" />
          </template>
          {{ formatDate(data.createTime) }}
        </el-descriptions-item>
        <el-descriptions-item>
          <template #label>
            <descriptions-item-label label="状态" />
          </template>
          <dict-tag :type="DICT_TYPE.WITHDRAW_STATUS" :value="data.status || ''" />
        </el-descriptions-item>
        <el-descriptions-item>
          <template #label>
            <descriptions-item-label label="原因" />
          </template>
          {{ data.auditReason }}
        </el-descriptions-item>
      </el-descriptions>
    </el-col>
  </ContentWrap>
</template>
<script setup lang="ts">
import { DICT_TYPE } from '@/utils/dict'
import { formatDate } from '@/utils/formatTime'
import { DescriptionsItemLabel } from '@/components/Descriptions/index'
import * as BrokerageWithdrawApi from '@/api/blind/BrokerageWithdraw'

const { data } = defineProps<{ data: BrokerageWithdrawApi.BrokerageWithdrawVO }>()
</script>
<style scoped lang="scss">
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style>
